﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Manul.Genetics.Genom;

namespace Manul.Genetics.Compiler
{
    public class CompilationResult
    {
        public CompilationResult(GenomCompilationError error)
        {
            Error = error;
            GenItem = Gen.Null;
        }
        public CompilationResult(Gen gen)
        {
            Error = GenomCompilationError.Null;
            GenItem = gen;
        }

        public GenomCompilationError Error
        { get; private set; }

        public Gen GenItem
        { get; private set; }

        public bool IsSuccessfull
        { get; private set; }
    }
}
